<div class="ltop"></div>
<div class="nickbox">
  <img src="{$user.headimg ? $user.headimg : '/static/school/images/head_03.png'}" class="nickpic" alt="">
  <div class="nicktxt">
    {$user.tel|strReplaceStar}
  </div>
</div>
<div class="leibox">
  <ul>
    <a href="{:url('user/my')}">
      <li>
        <div class="lieline"></div>
        <div class="lietxt " :class="{'active':tab == 'my'}">
          账户管理
        </div>
      </li>
    </a>
    <a href="{:url('user/need')}">
      <li>
        <div class="lieline"></div>
        <div class="lietxt " :class="{'active':tab == 'need'}">
          提交需求
        </div>
      </li>
    </a>
    <a href="{:url('user/order')}">
      <li>
        <div class="lieline"></div>
        <div class="lietxt" :class="{'active':tab == 'order'}">
          采购订单
        </div>
      </li>
    </a>
    <a href="{:url('user/address')}">
      <li>
        <div class="lieline"></div>
        <div class="lietxt" :class="{'active':tab == 'address'}">
          地址管理
        </div>
      </li>
    </a>
  </ul>
</div>
<div class="tuibox" @click="logout">
  退出登录
</div>